package com.xunwulian.base.constant;

import com.xunwulian.base.util.EnumType;

/**
 * 收费方式
 */
public enum ChargeMode implements EnumType<ChargeMode, Integer, String> {

    YEAR(1, "按年"),
    TWO_YEAR(4, "按两年"),
    UNKNOWN(99, "未知");

    public final int type;
    public final String desc;

    ChargeMode(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    @Override
    public Integer getType() {
        return this.type;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }


}
